import axios from '@/utils/request'

import config from '@/api/mdp_pub/mdp_config'

let base = config.getSmsContext();

/**
 * 短信回复
 * 1 默认只开放普通查询，所有查询，只要上传	 分页参数 {pageNum:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】}，后台都会自动按分页查询 其它 api用到再打开，没用到的api请注释掉，
 * 2 查询、新增、修改的参数格式  params={id:'短信回复ID 主键',extend:'通道扩展码，默认没有开通（需要填空）',mobile:'手机号码',nationcode:'国家（或地区）码',sign:'短信签名',text:'用户回复的内容',createDate:'创建时间',status:'回复短信处理状态0待处理1已处理成功2处理失败3延后处理',extendNo:'扩展字段',flowId:'关联的流水编号'}
 * @author maimeng-mdp code-gen
 * @since 2024-3-7
 **/
 
//普通查询 条件之间and关系  
export const listSmsReply = params => { return axios.get(`${base}/mdp/sms/smsReply/list`, { params: params }); };

//普通查询 条件之间and关系
export const querySmsReplyById = params => { return axios.get(`${base}/mdp/sms/smsReply/queryById`, { params: params }); };

//删除一条短信回复 params={id:'短信回复ID 主键'}
export const delSmsReply = params => { return axios.post(`${base}/mdp/sms/smsReply/del`,params); };

//批量删除短信回复  params=[{id:'短信回复ID 主键'}]
export const batchAddSmsReply = params => { return axios.post(`${base}/mdp/sms/smsReply/batchAdd`, params); };

//批量删除短信回复  params=[{id:'短信回复ID 主键'}]
export const batchDelSmsReply = params => { return axios.post(`${base}/mdp/sms/smsReply/batchDel`, params); };

//修改一条短信回复记录
export const editSmsReply = params => { return axios.post(`${base}/mdp/sms/smsReply/edit`, params); };

//新增一条短信回复
export const addSmsReply = params => { return axios.post(`${base}/mdp/sms/smsReply/add`, params); };

//批量修改某些字段
export const editSomeFieldsSmsReply = params => { return axios.post(`${base}/mdp/sms/smsReply/editSomeFields`, params); };